//
//  LCLoginService.h
//  lechuang
//
//  Created by Mr_hi on 2023/3/24.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LCLoginService : NSObject

// 发送验证码
+(void)sendSessionCodeWithMobStr:(NSString *)mobStr CodeType:(NSString *)codetype Block:(void(^)(BOOL isSuccess))block;

/// 登陆
/// @param mobStr 手机号
/// @param pswd 密码
/// @param block 登陆成功的回调
+ (void)loginWithMobStr:(NSString *)mobStr Password:(NSString *)pswd Block:(void(^)(BOOL isSuccess))block;

/// 注册
/// @param mobStr 手机号
/// @param pswd 密码
/// @param code 验证码
/// @param block 注册成功的回调
+ (void)registerWithMobStr:(NSString *)mobStr Pswd:(NSString *)pswd Captcha:(NSString *)code ShareCode:(NSString *)shareCode Block:(void(^)(BOOL isSuccess))block;

/// 验证短信验证码
/// @param mobStr 手机号
/// @param code 验证码
/// @param block 验证成功的回调
+ (void)verificationWithMobStr:(NSString *)mobStr Captcha:(NSString *)code Block:(void(^)(BOOL isSuccess, NSString * usertokey))block;

/// 重置密码
/// @param mobStr 手机号
/// @param usertokey 登陆标识
/// @param pswd 密码
/// @param surePswd 确认密码
/// @param block 请求完成的回调
+ (void)resetPswdWithMobStr:(NSString *)mobStr Usertokey:(NSString *)usertokey Pswd:(NSString *)pswd SurePswd:(NSString *)surePswd Block:(void(^)(BOOL isSuccess))block;


@end

